<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{if $status}^_^ 成功提示{else}:( 错误提示{/if}!</title>
    <style>
        body{font:14px/2.0 "Lucida Grande","微软雅黑";color:#333;background:#fff;padding:0px;margin:0px;}
        a{text-decoration:none;color:#3071BF}
        a:hover{text-decoration:none;}
        .layout{margin:20px auto; width:95%;}
        .error_title{border-bottom:1px #eee solid;font-size:20px;line-height:60px; height:60px;font-weight:600;margin-bottom:10px;}
        .error_box{border-left:4px solid #ffb61e;font-size:14px;line-height:25px;padding:6px 15px;background:#FFE}
        .error_tip{margin-top:10px;padding:6px;font-size:14px;padding-left:15px;background:#f0f0f4}
    </style>
</head>
<body>
<div class="layout">
    <div class="error_title">{if $status}成功提示{else}错误提示{/if}!</div>
    <div class="error_box">{$msg}</div>
{if $url}<div class="error_tip">页面自动&nbsp;<a id="href" href="{$url}" title="跳转">跳转</a>&nbsp; 等待时间：<b id="wait">3</b>&nbsp;&nbsp;<a href="{$url}">立即跳转</a></div>{else}<div class="error_tip">您可以选择&nbsp;&nbsp;<a href="javascript:history.back()" title="返回">返回</a>&nbsp;&nbsp;或者&nbsp;&nbsp;<a href="{ROOT_URL}" title="回到首页">回到首页</a></div>{/if}
</div>
{if $url}
<script type="text/javascript">
(function(){
    var wait = document.getElementById('wait'),href = document.getElementById('href').href;
    var interval = setInterval(function(){
    var time = --wait.innerHTML;
    if(time == 0) {
        location.href = href;
        clearInterval(interval);
    };
}, 3000);
})();
</script>
{/if}
</body>
</html>